package com.example.demo.service.impl;

import java.util.Collections;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.mapper.ITongzhiDao;
import com.example.demo.pojo.Tongzhi;
import com.example.demo.service.ITongzhiService;

@Service("TongzhiService")
public class TongzhiServiceImpl implements ITongzhiService{

	@Resource
	private ITongzhiDao TongzhiDao;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.TongzhiDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Tongzhi record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Tongzhi record) {
		// TODO Auto-generated method stub
		return this.TongzhiDao.insertSelective(record);
	}

	@Override
	public Tongzhi selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.TongzhiDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Tongzhi record) {
		// TODO Auto-generated method stub
		return this.TongzhiDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Tongzhi record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Tongzhi> selectTongzhi() {
		// TODO Auto-generated method stub
		return this.TongzhiDao.selectTongzhi();
	}

	@Override
	public List<Tongzhi> selectTongzhiByTitle(String title) {
		return this.TongzhiDao.selectTongzhiByTitle(title);
	}

	@Override
	public List<Tongzhi> selectTongzhiByCommunity(String community) {
		return this.TongzhiDao.selectTongzhiByCommunity(community);
	}


}
